package com.design.pattern.structural.decorator.v2;

/**
 * 认认真真写写
 * User: RenQiQiqng
 * Date: 2019/3/10-Time: 17:39
 * Description:
 */
public abstract class AbstractDecorator extends ABattercake{
    private ABattercake aBattercake;

    protected abstract void doSomething();

    public AbstractDecorator(ABattercake aBattercake) {
        this.aBattercake = aBattercake;
    }

    @Override
    protected String getDesc() {
        return this.aBattercake.getDesc();
    }

    @Override
    protected int cost() {
        return this.aBattercake.cost();
    }
}
